import 'package:flutter/material.dart';
import 'package:haokezufang/widgets/common_swipper.dart';

import '../../../widgets/search/index.dart';
import '../index_naviaor.dart';
import '../index_recommand.dart';
import '../info/index.dart';

class TabIndex extends StatelessWidget {
  const TabIndex({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
          elevation: 0,
          backgroundColor: Colors.white,
          title: MySearchBar(
            showLocation: true,
            showMap: true,
            inputValue: '',
            onSearch: () {
              // Navigator.of(context).pushNamed('search');
            },
            onSearchSubmit: (val) {},
          )),
      body: ListView(
        children: const [
          CommonSwipper(),
          IndexNavigator(),
          IndexRecommand(),
          IndexInfo(
            showTitle: true,
          ),
        ],
      ),
    );
  }
}
